app.service("orderService",function($http){
	this.loadDatas=function(oid){
		return $http.get("/order/load?oid="+oid);
	}
	this.saveOrder=function(){
		return $http.get("/order/save");
	}
	this.deleteData=function(pid,oid){
		return $http.get("delete.order?pid="+pid+"&oid="+oid);
	}
	this.addAddress=function(address,receciver,tel,uid){
		return $http.get("/order/address?address="+address+"&receciver="+receciver+"&tel="+tel+"&uid="+uid);
	}
	this.modifyItemsQty=function(pid,qty,oid){
		return $http.get("check.order?id="+pid+"&qty="+qty+"&oid="+oid);
	}
});